package com.huike.web.controller.clues;

import com.huike.clues.domain.FollowClue;
import com.huike.clues.service.ITbClueService;
import com.huike.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 线索记录的controller
 */
@RestController
@RequestMapping("/clues/record")
public class RecordController {

    @Autowired(required = false)
    private ITbClueService clueService;

    /**
     * 请求线索跟进记录  通过线索id查询线索的全部更近记录
     * @param clueId 线索的id
     */
    @GetMapping("/list")
    public AjaxResult list(Long clueId){
        return AjaxResult.success();
    }

    /**
     * 提交线索的跟进记录
     * @param tbClue 前端传入的数据
     */
    @PostMapping()
    public AjaxResult followClue(@RequestBody FollowClue tbClue){
        clueService.followClue(tbClue);
        return AjaxResult.success();
    }



















}
